<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增机构账户流水')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-itemSpecialHis-add">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">操作日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="dateInfo" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
            <input name="accountId" th:value="${accountId}" class="form-control" type="hidden" required>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">账单日期：</label>
                <div class="col-sm-8">
                    <input name="billDateInfo" id="billDateInfo"  class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">改变金额：</label>
                <div class="col-sm-8">
                    <input name="changeAmount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">备注：</label>
                <div class="col-sm-8">
                    <input name="remarkInfo" class="form-control" type="text" required>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "account/itemSpecialHis"
        $("#form-itemSpecialHis-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-itemSpecialHis-add').serialize());
            }
        }

        layui.use('laydate', function(){
            var laydate = layui.laydate;

            laydate.render({
                elem: '#billDateInfo',
                type: 'date'
            });
        });

    </script>
</body>
</html>